// 课程管理
import Layout from '@/views/layout/Layout'
const courseRouter = {
  path: '/course',
  component: Layout,
  redirect: '/course/list',
  name: 'Course',
  meta: { title: '课程管理' },
  children: [
    {
      path: 'list',
      name: 'CourseList',
      component: () => import('@/views/course/list'),
      meta: { title: '课程列表' }
    },
    {
      path: 'info',
      name: 'CourseInfo',
      component: () => import('@/views/course/form'),
      meta: { title: '发布课程' }
    },
    {
      path: 'info/:id',
      name: 'CourseInfoEdit',
      component: () => import('@/views/course/form'),
      meta: { title: '编辑课程' },
      hidden: true
    },
    {
      path: 'chapter/:id',
      name: 'CourseChapterEdit',
      component: () => import('@/views/course/form'),
      meta: { title: '编辑大纲' },
      hidden: true
    }
  ]
}
export default courseRouter
